function JokeLevel(joke){
                this.name = "levelJokes";
                Sprite.apply(this);
                Level.apply(this);
                this.timeLabel.visible = false;
                this.joke = joke.text;
                this.jokeType = joke.type;
                this.answer;
                
                var jokeText = new TextField();
                jokeText.setTextFormat(JokeLevel.tFormat);
                jokeText.wordWrap = true;
                jokeText.text = this.joke;
                jokeText.width = MainContainerWidth/2 + MainContainerWidth/4; 
                jokeText.height = jokeText.textHeight;
                jokeText.x = MainContainerWidth/2 - jokeText.width/2; 
                jokeText.y = MainContainerHeight/2 - 100;
                
                this.addChild(jokeText);
                
                
                const question = "Páčil sa vám tento vtip?";
                
                var questionText = new TextField();
                questionText.setTextFormat(new TextFormat(font, 20, red));
                questionText.text = question;
                questionText.width = questionText.textWidth; 
                questionText.height = questionText.textHeight;
                questionText.x = MainContainerWidth/2 - questionText.width/2; 
                questionText.y = jokeText.y + jokeText.height + 30;
                
                this.addChild(questionText);
                
                // CREATE BUTTONS
                yesButton = new Button("Áno");
                yesButton.x = MainContainerWidth/2 - yesButton.width;  
                yesButton.y = jokeText.y + jokeText.height + 60;
                yesButton.addEventListener(MouseEvent.CLICK, clickYes);
                
                this.addChild(yesButton);

                noButton = new Button("Nie");
                noButton.x = MainContainerWidth/2 + MARGIN;  
                noButton.y = jokeText.y + jokeText.height + 60;
                noButton.addEventListener(MouseEvent.CLICK, clickNo);
                
                this.addChild(noButton);
                
                this.removeChild (this.restartButton);
                this.removeChild (this.pauseButton);
                this.removeChild (this.skipButton);
                
                function clickYes(e) {
                    this.answer = true;
                    switch (e.target.parent.jokeType){
                        case typeMath:
                            Game._game.score.mathScore += 5;
                        break;
                        case typePhys:
                            Game._game.score.physScore += 5;
                        break;
                        case typeInf:
                            Game._game.score.infScore += 5;
                        break;
                    }
                    Game._game.NextLevel();
                }
                function clickNo(e) {
                    this.answer = false;
                    Game._game.NextLevel();
                }
                
            }
            JokeLevel.prototype = new Sprite();
            // JokeLevel.prototype = new Level();
            JokeLevel.tFormat   = new TextFormat(font, 30, black);
            JokeLevel.tFormat.align = TextFormatAlign.CENTER;
            